import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default new Vuex.Store({
  state: {
    /**
     * @typedef City
     * @property {string} name 城市名称
     */
    /**
     * 当前选择的城市
     * @type {City}
     */
    city: null,
  },
  mutations: {
    setCity(state, city) {
      state.city = city;
    },
  },
});
